package com.jlcindia;

public class Lab17 {
public static void main(String[] args) {
		Abc ref=new Abc("WELCOME");
		Abc.Pqr ref2=ref.new Pqr(3232);
		ref2.show();
		System.out.println();
		//equal to above 3 statement
		new Abc("THANKS").new Pqr(4141).show();
	}
}
class Abc{
	static String stVar="STATIC IN Outer";
	String var;
	Abc(String var){
		this.var=var;
	}
	class Pqr{	//instance inner class
		final static String stVar="STATIC IN Inner";//constant
		int var;//instance variable
		Pqr(int var){
			this.var=var;
		}
		void show(){
			boolean var=false;
			System.out.println("\n--In Show Method---in Inner Class");
			System.out.println(var);
			System.out.println(this);
			System.out.println(this.var);
			System.out.println(Abc.stVar);
			System.out.println(Pqr.stVar);
			System.out.println(Abc.this);
			System.out.println(Abc.this.var);
		}
	}
}	